
<link rel="stylesheet" href="plugins/FusionChartsPlugin/fusionchartsplugin/Contents/Style.css" type="text/css" />
<script language="JavaScript" src="plugins/FusionChartsPlugin/fusionchartsplugin/JSClass/FusionCharts.js"></script>

<table width="98%" border="0" cellspacing="0" cellpadding="3" align="center">
  <tr> 
    <td valign="top" class="text" align="center"> <div id="barchartdiv" align="center"> 
        FusionCharts. </div>
      <script type="text/javascript">
		  
		   var barchart = new FusionCharts("plugins/FusionChartsPlugin/fusionchartsplugin/Charts/FCF_Column3D.swf", "ChartId", "600", "350");
		   
		   SwiftUI.sendAjaxRequest("services/pluginController/FusionChartsPlugin/barchart", {}, function(data){
			   if(data.length >0) {
				   barchart.setDataXML(data);
		           barchart.render("barchartdiv");
		           //alert(data);
			   }
		   });	
		   
		    /*var barxmlHttpReq = false;
		    var self = this;
		    // Mozilla/Safari
		    if (window.XMLHttpRequest) {
		        self.barxmlHttpReq = new XMLHttpRequest();
		    }
		    // IE
		    else if (window.ActiveXObject) {
		        self.barxmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
		    }
		    self.barxmlHttpReq.open('POST', "services/pluginController/ReportsPlugin/barchart?mediUser=admin&mediPass=2c86c2b7df56f96e2aea3d90780b2095e9ed6ff1f34041f2be7154b526a21e1ceecc3796e71c46a29edd6fcec79af77a9792d1f2528367f24cb3a4c306d4b0a5&identifier=201282932780&isAdmin=false&uniqueString=1347334547582", true);
		    self.barxmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
		    self.barxmlHttpReq.onreadystatechange = function() {
		        if (self.barxmlHttpReq.readyState == 4) {
		            alert(self.barxmlHttpReq.responseText);
		            barchart.setDataXML(self.barxmlHttpReq.responseText);
		            barchart.render("barchartdiv");
		        }
		    }
		    self.barxmlHttpReq.send(null);*/
		    
		    
		</script> </td>
  </tr>
  <tr>
    <td valign="top" class="text" align="center"></td>
  </tr>
  
</table>
